package org.meetunexpectedly.entity.user;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.meetunexpectedly.entity.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * @Description: 收藏夹表
 * @Author: pupil
 * @Date: 2024/08/05 下午 5:37
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Favorites extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "收藏夹需要取名字")
    private String name;

    private String description;

    private Long userId;

    // 收藏夹下的视频总数
    @TableField(exist = false)
    private Long videoCount;
}
